<div class="widget-box">
<div class="widget-header widget-header-blue widget-header-flat">
	<h4 class="lighter">Settings</h4>
</div>
<div class="widget-body" style="padding-top: 20px;">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'setting-form',
	'enableAjaxValidation'=>false,
	'htmlOptions'=>array('class'=>'form-horizontal'),
)); ?>

<?php foreach ($models as $model):?>
	<div class="control-group">
		<label class="control-label"><?php echo $model->name_display; ?></label>
		<div class="controls">
			<input type="text" name="option[<?php echo $model->name; ?>]" value="<?php echo $model->value; ?>">
		</div>
	</div>
<?php endforeach;?>

	<div class="form-actions" style="background-color: white;">
		<input class="btn btn-primary" type="submit" name="submit" value="Save" >
	</div>

<?php $this->endWidget(); ?>
</div>
</div><!-- form -->